#pragma once
#include"my_hash_map_set.h"
namespace fertilizer
{
	template<class K>

	class unordered_set
	{
		struct SetKeyOfT
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};
	public:
		typedef typename my_hash_map_set::HashTable<K, K, SetKeyOfT>::const_iterator iterator;
		typedef typename my_hash_map_set::HashTable<K, K, SetKeyOfT>::const_iterator const_iterator;
		iterator begin()const
		{
			return _ht.begin();
		}
		iterator end()const
		{
			return _ht.end();
		}
		pair<iterator,bool> insert(const K& key)
		{
			pair<typename my_hash_map_set::HashTable<K, K, SetKeyOfT>::iterator, bool> ret = _ht.insert(key);
			return pair<iterator, bool>(ret.first, ret.second);
		}

	private:
		my_hash_map_set::HashTable<K, K, SetKeyOfT> _ht;
	};
 }